package com.weasel.security.escape.filter;

import com.weasel.security.escape.SensitiveWordHttpServletRequestWrapper;

import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;

/**
 * Created by Dylan on 2015/12/18.
 */
public class SensitiveWordFilter extends AbstractScurityFilter {


    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {

        chain.doFilter(new SensitiveWordHttpServletRequestWrapper((HttpServletRequest)request),response);
    }

}
